# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-params-validationcompiler
_pkgreal=Params-ValidationCompiler
pkgver=0.31
pkgrel=2
pkgdesc="Params::ValidationCompiler perl module"
url="https://metacpan.org/release/Params-ValidationCompiler"
arch="noarch"
license="Artistic-2.0"
depends="
	perl perl-specio perl-test-simple perl-test-without-module perl-eval-closure
	perl-exception-class perl-test2-plugin-nowarnings perl-role-tiny perl-mro-compat
	"
checkdepends="perl-type-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
e3265cc6a5fc9761dd6ae82c3875711c5766242ab0f1edd74cc74296fdac22b6c23e48ba4768e895701ca8a00bd81677056713124b8edaa0b340eae1b33cf9c4  Params-ValidationCompiler-0.31.tar.gz
"
